/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.customer.facade.info.partner;

import info.peigen.hotpot.business.customer.facade.enums.partner.PartnerEncryptType;
import info.peigen.hotpot.business.customer.facade.enums.partner.PartnerSignType;
import info.peigen.hotpot.common.core.domain.DomainObject;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(PartnerTechInfo)</b>
 * 合作伙伴模块与技术相关的内容
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/10/12
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class PartnerTechInfo extends DomainObject {
    @Builder.Default
    String             version = "1.0";
    @Builder.Default
    PartnerEncryptType type    = PartnerEncryptType.SM2;
    String hotpotPrivateKeyStr;
    String hotpotPublicKeyStr;
    String partnerPrivateKeyStr;
    String partnerPublicKeyStr;


    @Builder.Default
    PartnerSignType signType = PartnerSignType.MD5;
    String signKey;
    byte[] iv;
}
